﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/folha.css")" rel="stylesheet" type="text/css" />
    @RenderSection("SessaoCSS", required: false)
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-modal-1.0.pack.js")" type="text/javascript"></script>
    <script type="text/javascript">

        $(document).ready(function () {
        /*
            $(window).modal({
                url: 'http://localhost:1327/Autenticar/', autoOpen: true, closeClickOut: true
            });
            */
            /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! backgroundOpacity  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */

//            $('#frmAutenticar').modal({
//                url: 'http://localhost/mrcoisas/Autenticar/', backgroundOpacity: 0.3, closeClickOut: true
//            });
          
        });

    </script>
</head>
<body>
    <div>
        
    <div id="cabecalho">
        <div class="cabecalhoconteudo">
            <div class="logo">
                    <a href="@Url.Content("~/")"><img src="@Url.Content("~/Content/Images/logo.png")" alt=""/></a>
            </div>
            <div class="txtcaixaTot" style="height:50px;">
                 @Html.Action("Total","Geral")
            </div>
            <div style="height:35px;">
                <div id="network" style="float: right; position:relative;">
                    <ul class="network">
                        <li><a href="#"><img src="@Url.Content("~/Content/Images/twitter.png")"/></a></li>
                        <li><a href="#"><img src="@Url.Content("~/Content/Images/facebook.png")"/></a></li>
                    </ul>
                </div>
            </div>
            <div style="height:40px;">
                <div style="float: right;position: relative; width: 60%;">
                     <form style="float: right" action="http://youblog-btemplates.blogspot.com.br/search/" id="frmBusca" method="POST">
                        <input id="txtBuscar" name="q" size="20" type="text" value="buscar vídeos!" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;">
                        <input id="btnBuscar" type="submit" value="">
                    
                    </form>
                </div>
            </div>
        </div>
        <div style="width: 1002px;margin: 0 auto;height:60px;">
            <div style="width: 70%; height:60px; float:left;">
                <div id="menu" style="position: relative; float: left;top:25px;">
                    <ul>
                        <li><a href="#">Início</a></li>
                        <li><a href="#">Como compra</a></li>
                        <li><a href="#">Como vender</a></li>
                        <li><a href="#">Contato</a></li>
                        <li><a href="#">Meus Produtos</a></li>
                        <li><a href="#">Minhas Compras</a></li>
                    </ul>
                </div>

            </div>
            <div>
                <div id="autenticar">
                
                    @if (Request.IsAuthenticated)
                    {
                        <div class="menuAutenticado">
                            <a href='@Url.Action("Index","Autenticar")'>@User.Identity.Name</a> <a href='@Url.Action("Sair","Autenticar")'>Sair</a> 
                        </div>
                    }
                    else
                    { 
                    
                        <a href='@Url.Action("Index", "Autenticar")'>
                            <img style="border: 0px;" id="frmAutenticar" src="@Url.Content("~/Content/Images/login.png")"/>
                        </a>
    
                    }
                
                </div>
            </div>
        </div>
    </div>
    <!-- end .header -->
        <div class="container">
            <div class="content">
               @RenderBody()
            </div>
        </div>
        <div class="clearfloat"></div>
        <div id="footer">
            <div class="content">
                Principal
                sdasdasd<br/>
                sdasdasd<br/>
                sdasdasd<br/>
                sdasdasd<br/>sdasdasd<br/>
                sdasdasd<br/>
                sdasdasd<br/>
                sdasdasd<br/>
            </div>
        </div>
    </div>
</body>
</html>
